﻿<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>校园业务</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="applicable-device" content="mobile">
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes, width=device-width">
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" href="css/style.css">
	<script src="js/jquery.js"></script>
	<script src="js/common.js"></script>
	<script type="text/javascript">
	   $(document).ready(function(){
			$.ajax({
				type: "post",
			 	url: "/personalcenter/loginOpen",
			    dataType: "json",
				success: function (data) {
			    	if(data.result==0){
			    		window.location.href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe643cc1b34aa8f25&redirect_uri=http%3a%2f%2fa6.189young.com%2fpersonalcenter%2fcheckuser&response_type=code&scope=snsapi_base&state=1#wechat_redirect';
			    	}else{
			    		if(data.result==1){
			    			$("#username").html(data.user.name.replace(/.(?=.)/g, '*'));
			    			$("#usernickname").html(data.nickname);
			    			$("#userimage").attr('src',data.headimg);
			    			$("#userschool").html(data.user.school);
			    			$("#userpoints").html(data.points);
			    			$("#userlevel").html(data.level);
			    			if(data.school==1){
			    				boxIn($('#out-school'));
			    			}
			    			$("#todaypoints").html(data.todaypoints);
			    			$("#todaypoints2").html(data.todaypoints);
			    			if(data.today==0){
			    				if(data.six==1){
			    					boxIn($('#out-sign-6'));
			    				}else{
			    					boxIn($('#out-sign'));
			    				}
			    			}
			    		}else{
			    			$('.btn-index-rz').css({display:"block"});
			    			$('.index-user').css({display:"none"});
			    		}
			    	}
			    }
			});
	 	});

	   function checkDate(){
			var date= new Date();
			var currentMonth=date.getMonth();
			var nextMonth=++currentMonth;
			var nextMonthFirstDay=new Date(date.getFullYear(),nextMonth,1);
			var oneDay=1000*60*60*24;
			var deaddate=new Date(nextMonthFirstDay-oneDay).toLocaleDateString();
			if(date.toLocaleDateString()==deaddate){
				alert("月底最后1天不能续约，下次请早哟！");
			}else{
				window.location.href="http://fx.sh.189.cn/mininet/wapXywxNew/toIndex";
			}
		}
    </script>
</head>
<body>
    <div class="page">

        <header class="yellow-header">

            <!-- 未认证 -->
             <a href="signup.html" class="btn-index-rz" style="display:none">成为Young粉</a>
            <!-- 未认证 end -->

            <!-- 已认证 -->
            <div class="clearfix index-user" style="display:block">
                <a class="user-photo img-box dib" href="user_info.html"><img src="img/icon_index_menu07.png" alt="" name="userimage" id="userimage"></a>
                <div class="index-user-info dib">
                    <a href="user_info.html" class="db index-user-name">你好!<div class="uName" name="username" id="username"></div><div class="uNic">[<span class="dib tov" name="usernickname" id="usernickname"></span>]</div></a>
                    <a href="user_edit.html" class="db index-user-school"><span class="dib tov" name="userschool" id="userschool"></span>[编辑]</a>
                    <a href="user_point.html" class="db index-user-other">积分:<b name="userpoints" id="userpoints"></b> | 级别:<b name="userlevel" id="userlevel"></b></a>
                </div>
                <a href="user_info.html" class="link-young">young粉</a>
                <a href="calendar.html" class="link-qd">今日已签到</a>
            </div>
            <!-- 已认证 end -->

        </header>

        <nav class="index-nav tc">
            <a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe643cc1b34aa8f25&redirect_uri=http%3a%2f%2fa6.189young.com%2fpersonalcenter%2fpackagecheck&response_type=code&scope=snsapi_base&state=1#wechat_redirect" class="dib">套餐余量</a>
            <a href="point_events.html" class="dib">Young粉活动</a>
            <!-- <a href="point_goods.html" class="dib">积分兑换</a> -->
            <a href="http://a6.189young.com/feiyoungBottle/index.html" class="dib">氮气瓶</a>
        </nav>

        <div class="index-msg">温馨提示：每月最后1天续约功能将关闭；月末最后3天内的续约订单可能次次月生效；带来不便敬请谅解，续约请早哟！</div>

         <ul class="index-services clearfix">
            <li class="fl boxz">
                <a href="/personalcenter/produceurl">
                    <h5>新办套餐</h5>
                    <p>飞Young校友卡</p>
                    <img src="img/icon_index_service01.png" alt="">
                </a>
            </li>
            <li class="fl boxz">
                <a href="http://fx.sh.189.cn/mininet/fusion/weixiFillOrder.html">
                    <h5>加宽带</h5>
                    <p>加宽带-流量包-语音包</p>
                    <img src="img/icon_index_service02.png" alt="">
                </a>
            </li>
            <li class="fl boxz">
                <a href="renew.html">
                    <h5>续约·年付</h5>
                    <p>续约&查看到期时间</p>
                    <img src="img/icon_index_service03.png" alt="">
                </a>
            </li>
            <li class="fl boxz">
                <a href="http://app.sh.189.cn/mwechat/pay/home?channel=10033">
                    <h5>充值</h5>
                    <p>不含续约</p>
                    <img src="img/icon_index_service04.png" alt="">
                </a>
            </li>
            <li class="fl boxz">
                <a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe643cc1b34aa8f25&redirect_uri=http%3a%2f%2fa6.189young.com%2faiLL%2faiLL201807Servlet&response_type=code&scope=snsapi_base&state=aiLL#wechat_redirect">
                    <h5>全国流量畅享</h5>
                    <p>Young粉免费领取</p>
                    <img src="img/icon_index_service05.png" alt="">
                </a>
            </li>
            <li class="fl boxz">
                <a href="http://a6.189young.com/schoolcard">
                    <h5>宽带免费体验</h5>
                    <p>校园宽带加速神器</p>
                    <img src="img/icon_index_service06.png" alt="">
                </a>
            </li>
        </ul>

	<div class="index-menu tc">
		<a href="http://fx.sh.189.cn/mininet/fusion/orderQuery.html" class="dib">受理查询</a>
		<a href="http://a6.189young.com/aiLL/aiLLdingxiang.html" class="dib">定向流量奖</a>
		<a href="shopList.html" class="dib">校园店</a>
		<a href="javascript:void(0)" class="dib">即将开启</a><!--达量奖励-->
		<a href="/personalcenter/fycaption" class="dib">呼叫楼长</a>
		<a href="http://mp.weixin.qq.com/mp/homepage?__biz=MzAwMjAwNzg4MQ==&hid=3&sn=3b1f04eaa999609aaaf644d13efc563e#wechat_redirect" class="dib">小Young解惑</a>
		<a href="http://a6.189young.com/mycampus" class="dib">我的校园</a>
		<a href="./fyhelp" class="dib">报障求助</a>
	</div>


        <div class="out-mask"></div>
        <!-- 签到成功弹窗 -->
        <div class="out-box out-index-success" id="out-sign">
          <div class="out-box-inner">
            <div class="out-close"></div>
            <h2 class="yellow-title tc">恭喜!签到成功!</h2>
            <p class="out-box-msg tc">获得<b id="todaypoints"></b>积分</p>
            <div class="tc out-btn-row"><a href="user_point.html" class="btn btn-yellow">查看我的积分</a></div>
          </div>
        </div>

		<!-- 连续签到6天 -->
		<div class="out-box out-index-success" id="out-sign-6">
          <div class="out-box-inner">
            <div class="out-close"></div>
            <h2 class="yellow-title tc">恭喜!签到成功!</h2>
            <p class="out-box-msg tc">获得<b id="todaypoints2"></b>积分</p>
            <p class="out-box-msg tc">连续6天签到额外获得<b>100</b>积分</p>
            <div class="tc out-btn-row"><a href="user_point.html" class="btn btn-yellow">查看我的积分</a></div>
          </div>
        </div>

        <!-- 补签成功弹窗 -->
        <div class="out-box out-index-bu">
          <div class="out-box-inner">
            <div class="out-close"></div>
            <h2 class="tc">补签成功!</h2>
          </div>
        </div>

		<!-- 学校修改弹窗 -->
         <div class="out-box out-index-success" id="out-school">
          <div class="out-box-inner">
            <div class="out-close"></div>
            <p class="out-box-msg tc">同学，你的学校信息可能不正确，请按照当前实际情况修改；否则可能会影响正常服务!</p>
            <div class="tc out-btn-row"><a href="user_edit.html" class="btn btn-yellow">好的，马上就去！</a></div>
          </div>
        </div>
    </div>

    <script>
     /*  $(function(){
        // 签到成功弹窗出现

      }) */
    </script>

    <!--百度数据统计-->
    <script>var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src="https://hm.baidu.com/hm.js24866553cf6bdd25afcd437091f96447";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();</script>

</body>
</html>
















